@import '../../../sass/variables.scss';
@import '../../../sprites/sprite_commonIcon.scss';
html,body{ 
    height: 100%;
}
body{
    min-height: 800px;
    position: relative !important;    
    overflow: auto;
    background: #14152A url(../../images/login_bg.jpg) no-repeat center 34px;
}
.loginTop{
    padding: 20px 0;
    height: 45px;
    line-height: 33px;
    color: $text_color;
    background: $white;
    border-bottom: 1px solid $gray;
    font-size: 12px;

    a{
        color: $text_color;
    }
    .container{
        position: relative;
        width: 1000px;
        @include clfix;
    }
    .logo{
        float: left;
    }
    .language{
        float: right;
        display: inline-block;
        width: 33px;
        height: 33px; 
        line-height: 33px;
        border: 1px solid $gray_dark;
        border-radius: 3px;
        text-align: center;
        color: $text_color;
        font-size: 14px;
        &:hover{
            color: $primary;
        }
    }
}
.loginBody{
    margin: 100px auto 0;
    width: 470px;
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#132e57,endColorstr=#132e57);
    background: rgba(19,46,87,.8);
    padding: 56px 0 56px 60px;
    border-radius: 5px;
    .logoBar{
        margin-bottom: 45px;
        font-size: 20px;
        line-height: 30px;
        color: $white;
        font-family: 'Microsoft JhengHei','Microsoft YaHei','SimSun';
        font-weight: bold;
        .logoText{
            margin-left: 10px;
            color: $primary;
            font-size: 30px;
            padding-right: 15px;
            margin-right: 15px;
            border-right: 1px solid $primary;
            line-height: 28px;
            height: 28px;
            vertical-align: bottom;
            display: inline-block;
        }
    }
    .optionBar{
        position: relative;
        font-size: 12px;
        label{
            display: block;
            color: $primary_login;
            margin-bottom: 5px;
            font-size: 16px;  
        } 
        input{
            width: 288px;
            height: 34px;
            line-height: 34px;
            padding-left: 10px;
            vertical-align: middle;
            border: 1px solid $gray_lighter;
            background: $white;
        }
        .validaCode{
            width: 205px;
            vertical-align: middle;
        }
        .validaCodeImg{
            margin-left: 5px;
            height: 36px;
            vertical-align: middle;
        }
        .error{
            min-height: 30px;
            line-height: 30px;
            color: $danger;
        }
        .link{
            vertical-align: middle;
            margin-left: 5px;
            color: $gray_lighter;
        }
    }
    .account:after{
        content: "";
        position: absolute;
        top: 7px;
        left: 269px;
        @include sprite($account);
    }
    .pwd:after{
        content: "";
        position: absolute;
        top: 9px;
        left: 269px;
        @include sprite($pwd);
    }
    .btnBox{
        margin-top: 20px;
        .btn{
            border: 0;
            margin-right: 20px;
            min-width: 150px;
            cursor: pointer;
            text-align: center;
            padding: 0 30px;
            border-radius: 2px;
            height: 40px;
            color: $white;
            background: $primary_login;
            font-size: 14px;
            &.disabled{
                background: $gray;
                cursor: default;
                color: $gray_dark;
            }
            &:disabled{
                position: relative;
            }
            &:disabled:before{
                content: "";
                width: 15px;
                height: 15px;
                transform:scale(1.3);
                margin-right: .5em;
                display: inline-block;
                background-size: 100% 100%;
                vertical-align: middle;
                background-image: url();
                opacity: .7;
                animation:buttonLoadingAnim 1s linear infinite;
            }
            /* ie浏览器不显示loading动画 */
            @media screen\0{
                &:disabled:before{
                    display: none;
                }
            }
            
        }
        .grayBtn{
            color: $white;
            background: $gray_dark;
        }
    }
}
.footer{
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    color: $gray;
    line-height: 1.8;
    text-align: center;
    margin-top: 90px;
    margin-bottom: 30px;
    font-size: 12px;
    .menu-link a{
        display: inline-block;
        padding: 0 10px;
        color: $gray;
    }
    .kexin-web{
        margin-top: 10px;
    }
    .cnnic{
        display: inline-block;
        @include sprite($cnnic);
    }
}

@keyframes buttonLoadingAnim{
    0%{
        transform:scale(1.3) rotate(0);
    }
    100%{
        transform:scale(1.3) rotate(360deg);
    }
}